package com.whmnx.main.ui.model;

import android.text.TextUtils;

import androidx.annotation.NonNull;
import androidx.databinding.ObservableField;

import com.whmnx.base.bean.ProductBean;
import com.whmnx.main.R;

import me.goldze.mvvmhabit.base.ItemViewModel;
import me.goldze.mvvmhabit.binding.command.BindingAction;
import me.goldze.mvvmhabit.binding.command.BindingCommand;

/**
 * author : huang
 * date   : 2020/10/14 0014 11:59
 * version: 1.0
 * @author Administrator
 */
public class AddComItemViewModel2 extends ItemViewModel {
    public ObservableField<String> Product_sec  = new ObservableField<>("");

    public ObservableField<String> Product_price  = new ObservableField<>("");

    public ObservableField<String> Product_price_pin  = new ObservableField<>("");

  //  private CommodityModel viewModel;
    private ProductBean.SpecModelBean specModelBean;

    public AddComItemViewModel2(@NonNull CommodityModel viewModel2, ProductBean.SpecModelBean specModelBean) {
        super(viewModel2);
        this.specModelBean = specModelBean;
       // this.viewModel = viewModel2;
        Product_sec.set(specModelBean.getProductSPEC_Name());
        Product_price.set(specModelBean.getProductSPEC_Price());
       // if (!TextUtils.isEmpty(Product_price_pin.get()))  specModelBean.setProductSPEC_GroupPrice(Product_price_pin.get());
       // viewModel.specModelBeans.add(specModelBean);
        initView();
    }



    private void initView() {



    }



}
